package user;

public abstract class User {
    private String name;
    private int uid;
    private String role;

   public User(String name,int uid,String role){
       this.name=name;
       this.uid=uid;
       this.role=role;
   }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
   }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    public abstract int display();

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", uid=" + uid +
                ", role='" + role + '\'' +
                '}';
    }
}

